package assignment1;

public class Circle extends MyShape
{   //Sub class of MyShape, calculates the area and length of a circle.
    public double calcArea(int L)
    {   //formula to calculate area.
        return L*L*Math.PI;
    }
    
    public double calcLength(int L)
    {   //formaula to calculate length.
        return 2*L*Math.PI;
    }
}